package controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloController {

	@RequestMapping("/hello.do")	
	public ModelAndView helloMethod(HttpServletRequest request, 
									HttpServletResponse response) {
		
		ModelAndView mav = new ModelAndView();
		mav.setViewName("hello");
		return mav;
	}
	
}
